#include "Selah.h"
#include "TestApp.h"

using namespace SL;

int main(int argc, char* argv[]){
    AppConfig config;
    if(argc > 1)
        config.hdrPath = argv[1];
    std::cout << config.hdrPath<<std::endl;
    config.windowDesc.enableVSync = true;
    TestApp app(config);
    app.run();
    return 0;
}
/*
// for rasterize desc (shadow bias)

Bias = (float)DepthBias * r + SlopeScaledDepthBias * MaxDepthSlope;

where r is the minimum representable value > 0 in the depth-buffer format converted to float32. 

MaxDepthSlope value is the maximum of the horizontal and vertical slopes of the depth value at the pixel.


// for floating-point
Bias = (float)DepthBias * 2**(exponent(max z in primitive) - r) +
           SlopeScaledDepthBias * MaxDepthSlope;

where r is the number of mantissa bits in the floating point representation (excluding the hidden bit); for example, 23 for float32.

*/


/*

if(DepthBiasClamp > 0)
    Bias = min(DepthBiasClamp, Bias)
else if(DepthBiasClamp < 0)
    Bias = max(DepthBiasClamp, Bias)
*/ 

/*
if ( (DepthBias != 0) || (SlopeScaledDepthBias != 0) )
    z = z + Bias
*/